package com.etc.service.impl;

import java.util.List;

import com.etc.dao.AdminsDao;
import com.etc.dao.impl.AdminsDaoImpl;
import com.etc.entity.Admins;
import com.etc.entity.Users;
import com.etc.service.AdminsService;

/**
 * 管理员信息 
 * @author 林吉旭、周孝梅
 *
 */

public class AdminsServiceImpl implements AdminsService {
	AdminsDao Adao = new AdminsDaoImpl();
	//管理员登入信息查询
	@Override
	public List<Admins> SelAdminsAll(String adminName, String adminPwd) {
		// TODO Auto-generated method stub
		List<Admins> list = Adao.SelAdminsAll(adminName, adminPwd);
		return list;
	}
	@Override
	public boolean UpdUsersState(Users users) {
		// TODO Auto-generated method stub
		return Adao.UpdUsersState(users)>0;
	}
	@Override
	public Admins SelAdminsAll(String adminName) {
		// TODO Auto-generated method stub
		return Adao.SelAdminsAll(adminName);
	}
	@Override
	public boolean SelAdminsName(String adminName) {
		// TODO Auto-generated method stub
		return Adao.SelAdminsName(adminName);
	}
	@Override
	public boolean SelAdminsPwd(String adminPwd) {
		// TODO Auto-generated method stub
		return Adao.SelAdminsPwd(adminPwd);
	}
	
}
